package JVM;

import nodeList.LinkedList;

import java.util.ArrayList;
import java.util.List;

/**
 * @author shy_black
 * @date 2019/3/20 16:48
 * @Description:
 * 配置JVM运行参数（-Xms20M,,-Xmx20M）后，运行结果 ：
 * Exception in thread "main"
 * java.lang.OutOfMemoryError: Java heap space
 *
 */
class test {

}
public class JVM_Test {
    public static void main(String[] args) {
        List<test> i = new ArrayList<>();
        while(true){
            i.add(new test());
        }

    }
}
